import request from '@/utils/request'

// 查询场景组和业务组件关系表列表
export function listScenarioBusinessComponentRela(query) {
  return request({
    url: '/business/scenarioBusinessComponentRela/list',
    method: 'get',
    params: query
  })
}

// 查询场景组和业务组件关系表详细
export function getScenarioBusinessComponentRela(id) {
  return request({
    url: '/business/scenarioBusinessComponentRela/' + id,
    method: 'get'
  })
}

// 新增场景组和业务组件关系表
export function addScenarioBusinessComponentRela(data) {
  return request({
    url: '/business/scenarioBusinessComponentRela',
    method: 'post',
    data: data
  })
}

// 修改场景组和业务组件关系表
export function updateScenarioBusinessComponentRela(data) {
  return request({
    url: '/business/scenarioBusinessComponentRela',
    method: 'put',
    data: data
  })
}

// 删除场景组和业务组件关系表
export function delScenarioBusinessComponentRela(id) {
  return request({
    url: '/business/scenarioBusinessComponentRela/' + id,
    method: 'delete'
  })
}
